{% extends 'base.html' %}
{% block content %}

<div class="aw-container-wrap">
	<div class="container aw-publish">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<!-- tab 切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active">
												<li><a href="http://wenda.golaravel.com/publish/article/">文章</a></li>
												<li class="active"><a href="http://wenda.golaravel.com/publish/">问题</a></li>
						<h2 class="hidden-xs"><i class="icon icon-ask"></i> 发起</h2>
					</ul>
					<!-- end tab 切换 -->
					<form action="" method="post" id="question_form">
						{% csrf_token %}
						<!--{{form}}-->
						<!--<input type="submit" value="Submit" />-->
						<!--</form>-->
						<!--<input type="hidden" name="post_hash" value="B0352BE0FA38F9E0">-->
						<!--<input type="hidden" name="attach_access_key" value="b3bd7da00993ed2e165d1a59dcafb8c2">-->
						<!--<input type="hidden" name="question_id" id="question_id" value="">-->
						<!--<input type="hidden" name="ask_user_id" value="">-->
												<div class="aw-mod aw-mod-publish">
							<div class="mod-body">
								<h3>问题标题:</h3>
								<!-- 问题标题 -->
								<div class="aw-publish-title active">
									<div>
										<input type="text" placeholder="问题标题..." name="title" id="question_contents" value="" class="form-control">
										<div class="aw-publish-suggest-question hide">
											<p class="text-color-999">你的问题可能已经有答案</p>
											<ul class="aw-dropdown-list">
											</ul>
										</div>
									</div>
																	</div>
								<!-- end 问题标题 -->

								<h3>问题补充 (选填):</h3>
								<div class="aw-mod aw-editor-box">
									<div class="mod-head">
										<div class="wmd-panel">
											{{ form.media }}
											{{form}}
											<!--<input type="text" placeholder="问题内容..." name="content" id="question_contentss" value="" class="form-control" style="height: 300px;">-->
								            <!--<div id="wmd-button-bar"><div id="wmd-button-row" class="btn-toolbar"><div class="btn-group wmd-button-group1" id="wmd-button-group1"><button class="btn" id="wmd-bold-button" title="" data-original-title="加粗 - ⌘+B"><i class="icon icon-bold"></i></button><button class="btn" id="wmd-italic-button" title="" data-original-title="斜体 - ⌘+I"><i class="icon icon-italic"></i></button><button class="btn" id="wmd-heading-button" title="" data-original-title="标题 - ⌘+H"><i class="icon icon-h"></i></button></div><div class="btn-group wmd-button-group2" id="wmd-button-group2"><button class="btn" id="wmd-olist-button" title="" data-original-title="数字列表 - ⌘+O"><i class="icon icon-ol"></i></button><button class="btn" id="wmd-ulist-button" title="" data-original-title="普通列表 - ⌘+U"><i class="icon icon-ul"></i></button></div><div class="btn-group wmd-button-group4" id="wmd-button-group4"><button class="btn" id="wmd-quote-button" title="" data-original-title="引用 - ⌘+H"><i class="icon icon-quote"></i></button><button class="btn" id="wmd-code-button" title="" data-original-title="代码 - ⌘+K"><i class="icon icon-code"></i></button></div><div class="btn-group wmd-button-group3" id="wmd-button-group3"><button class="btn" id="wmd-image-button" title="" data-original-title="图片 - ⌘+G"><i class="icon icon-image"></i></button><button class="btn" id="wmd-video-button" title="" data-original-title="视频 - ⌘+E"><i class="icon icon-video"></i></button><button class="btn" id="wmd-link-button" title="" data-original-title="链接 - ⌘+L"><i class="icon icon-bind"></i></button></div><div class="btn-group wmd-button-group5" id="wmd-button-group5"><button class="btn" id="wmd-undo-button" title="" data-original-title="撤销 - ⌘+Z" disabled=""><i class="icon icon-undo"></i></button><button class="btn" id="wmd-redo-button" title="" data-original-title="重做 - ⌘+Y" disabled=""><i class="icon icon-redo"></i></button></div><div class="btn-group wmd-button-group6 pull-right" id="wmd-button-group6"><button class="btn" id="wmd-quote-button" title="" data-original-title="开关预览模式"><i class="icon icon-preview"></i></button><button class="btn" id="wmd-quote-button" title="" data-original-title="编辑器语法帮助"><i class="icon icon-help"></i></button></div></div><div class="wmd-helper hide"><ul class="clearfix"><li class="active">标题 / 粗斜体</li><li>代码片段</li><li>超链接 / 图片 / 视频</li><li>列表 / 引用</li></ul><div class="content"><div class="tab-pane active"><p>文章内容较多时，可以用标题分段 : </p><pre>## 大标题 <br>### 小标题</pre><p>斜体 / 粗体 : </p><pre>**粗体** <br>*斜体* <br>***粗斜体*** </pre></div><div class="tab-pane hide"><p>代码片段 : </p><pre></pre></div><div class="tab-pane hide"><p>超链接 : </p><pre>[链接文字](链接地址) 例: [百度](http://www.baidu.com)</pre><p>图片 : </p><pre>![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)</pre><p>视频 : </p><pre>!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)</pre></div><div class="tab-pane hide"><p>有序列表 : </p><pre>1. 123<br>2. 123<br>3. 123</pre><p>无序列表 : </p><pre>- 123<br>- 123<br>- 123<br></pre><p>引用 : ( 双回车后结束引用 )</p><pre>&gt; 引用内容<br>引用内容<br>引用内容</pre></div></div></div></div>-->
								            <!--<textarea class="wmd-input form-control autosize" id="wmd-input" rows="15" name="question_detail" style="overflow: hidden; word-wrap: break-word; resize: none; height: 312px;"></textarea>-->
								        </div>
									</div>
									<div class="mod-body">
										<span class="pull-right text-color-999" id="question_detail_message">&nbsp;</span>
																				<!--<div class="aw-upload-box">-->
											<!--<a class="btn btn-default"><form method="post" enctype="multipart/form-data" id="upload-form" action="http://wenda.golaravel.com/publish/ajax/attach_upload/id-question__attach_access_key-b3bd7da00993ed2e165d1a59dcafb8c2" target="ajaxUpload"><input type="submit" class="submit"><input type="file" class="file-input" name="aws_upload_file" multiple="multiple"></form>上传附件</a>-->
											<!--<div class="upload-container"><ul class="upload-list"></ul></div>-->
											<!--<span class="text-color-999 aw-upload-tips hidden-xs">允许 : jpg,jpeg,png,gif,zip,doc,docx,rar,pdf,psd</span>-->
										<!--</div>-->
																			</div>
									<div class="mod-footer">
										<div id="wmd-preview" class="wmd-panel wmd-preview" style="display: none;"></div>
									</div>
								</div>
																<h3>添加话题:</h3>
								<div class="aw-topic-bar active" data-type="publish">
									<div class="tag-bar clearfix">


										<span class="aw-edit-topic icon-inverse" style="display: none;"><i class="icon icon-edit"></i> 编辑话题</span>

									</div>
								<div class="aw-edit-topic-box form-inline" style="display: block;"><input type="text" class="form-control" id="aw_edit_topic_title" autocomplete="off" placeholder="创建或搜索添加新话题..."><a class="btn btn-normal btn-success add">添加</a><a class="btn btn-normal btn-gray close-edit">取消</a><div class="aw-dropdown"><p class="title">没有找到相关结果</p><ul class="aw-dropdown-list"></ul></div></div></div>
																															</div>
							<div class="mod-footer clearfix">
								<a href="/" target="_blank">[积分规则]</a>
								<span class="aw-anonymity">

								</span>
								<!--<a class="btn btn-large btn-success btn-publish-submit" id="publish_submit" type="submit">确认发起</a>-->
								<input type="submit" value="Submit" />
							</div>
						</div>
					</form>
				</div>
				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 问题发起指南 -->
					<div class="aw-mod publish-help">
						<div class="mod-head">
							<h3>问题发起指南</h3>
						</div>
						<div class="mod-body">
							<p><b>• 问题标题:</b> 请用准确的语言描述您发布的问题思想</p>
							<p><b>• 问题补充:</b> 详细补充您的问题内容, 并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
							<p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的问题得到更多有相同兴趣的人参与. 所有人可以在您发布问题之后添加和编辑该问题所属的话题</p>
													</div>
					</div>
					<!-- end 问题发起指南 -->
				</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
{% endblock %}